<template>
	<view class="orderdetail">
		<view class="bodydetail">
			<u-cell-group>
					<u-cell icon="arrow-up-fill" title="商店名称" :value="detail.sellerName"> </u-cell>
					<u-cell icon="setting-fill" title="商品名称" :value="detail.productName"> </u-cell>
					<view class="imgarea">
						<image :src="detail.productImg" class="commodityposter"></image>
						<view class="textarea">
							<u--text mode="price" :text="detail.price" color="red" size="20" bold="true"></u--text>
							<u--text text="x1" class="number"></u--text>
						</view>
					</view>
					<u-cell icon="hourglass-half-fill" title="下单时间" :value="detail.time"></u-cell>
					<u-cell icon="red-packet" title="实付款" :value="detail.price"></u-cell>
					<u-cell icon="star" title="订单号" :value="detail.id"></u-cell>
					<u-cell icon="plus-circle" title="收货地址" :value="detail.address"></u-cell>
					<!-- <u-cell icon="clock" title="下单时间" value="1166"></u-cell>	 -->
			
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail:null,
			}
		},
		onLoad(options) {
			this.detail = JSON.parse(decodeURIComponent(options.item));
			console.log(this.detail);
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.orderdetail{
	font-family:"Hiragino Sans GB","PingFang SC";
	.bodydetail{
		margin-top: 40upx;
		border-radius: 10upx;
		width: 98%;
		margin-left: 1%;
		background-color: #eeeeef;
		border:1upx solid lightgray;
		box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
		.imgarea{
			width: 90%;
			margin-left: 4%;
			padding-top: 20upx;
			padding-bottom: 20upx;
			display: flex;
			justify-content: space-between;
			
			.textarea{
				display: flex;
				flex-direction: column;
				font-weight: 500;
			}
			.commodityposter{
				border-radius: 10upx;
				width: 300upx;
				height: 300upx;
				padding: 10upx;
				border:1upx solid lightgray;
				box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
			}
		}
	}
}
</style>
